package top.superflow.flow.load

import top.superflow.flow.config.FlowConfig
import top.superflow.json.util.JsonUtils

class FlowLoader extends Loader[FlowConfig] {

  private var flowGroup: String = _

  def load(json: Any): FlowConfig = {
    val flowConfig = JsonUtils.readJson[FlowConfig](json, classOf[FlowConfig])

    flowGroup = flowConfig.getGroup

    flowConfig
  }
}
  



